package com.idenger.modules.edu.entity.course;

import java.util.Date;

public class CourseAndProjectDto implements Comparable<CourseAndProjectDto> {


    private  String id;
    private String name;
    private String iconImage;
    private String price;
    private String preferentialPrice;
    private String type;
    private Date createDate;

    public CourseAndProjectDto() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIconImage() {
        return iconImage;
    }

    public void setIconImage(String iconImage) {
        this.iconImage = iconImage;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPreferentialPrice() {
        return preferentialPrice;
    }

    public void setPreferentialPrice(String preferentialPrice) {
        this.preferentialPrice = preferentialPrice;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public int compareTo(CourseAndProjectDto arg0) {
        return this.getCreateDate().compareTo(arg0.getCreateDate());
    }
}
